package top.abilities.util;


import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import top.abilities.CodeGenerationApplication;
import top.abilities.admin.moudle.fes.dao.mapper.PersonMapper;
import top.abilities.admin.moudle.fes.dao.model.Person;
import top.abilities.admin.moudle.fes.service.PersonService;


/**
 * @Author: zhaohaoxin
 * @Date: 2022-04-15-14:59
 */
@SpringBootTest(classes = CodeGenerationApplication.class )
public class SpringBootTestDemo {

    @Autowired
    PersonService personService;
    @Autowired
    PersonMapper personMapper;

    @Test
    void test(){
        Person person = new Person();
        person.setId(1);
        person.setUsername("张三");
        person.setSex("1");
        personMapper.insertSelective(person);
    }

}
